package com.jiuyi.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jiuyi.entity.Setmeal;
import com.jiuyi.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * DATA: 2022/10/22
 * Author: 晨夕
 */
@Mapper
public interface UserMapper  extends BaseMapper<User> {
    //根据电话查用户
    User selectByPhone(@Param("phone") String phone);
    //根据id查name
    String selectNameById(@Param("userId")Long userId);
}
